package Kwiaciarnia;

import java.util.HashMap;

public class PriceList {
	
	HashMap<String,Integer> map ;
		
	private PriceList() {
		map = new HashMap<String,Integer>();	
	}
	
	private static final PriceList instance =  new PriceList() ;
	
	public static  PriceList getInstance() {
	      return instance;
	}
	
	public void set(String string, int i) {
		map.put(string, i);		
	}
	
	public double get(String string){
		if(map.containsKey(string))
		return map.get(string);
		else return -1;
		
	}



}
